/* uDig - User Friendly Desktop Internet GIS client
 * http://udig.refractions.net
 * (C) 2004-2008, Refractions Research Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation;
 * version 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */
package symbology;

/**
 * shows text at a given geographic shape
 * <p>
 *
 * </p>
 * TODO Too many text attributes. Constructor should use defaults, then use setter functions.
 * @author John
 * @since 1.1.0
 */
public class TextSymbol extends Symbol {
    
    public class Style {
        public String font;
        public String weight;
        public double size;
        public Color color;
        public Color highlight;
        
        Style(String font, String weight, double size, Color color, Color highlight)
        {
            this.font = font;
            this.weight = weight;
            this.size = size;
            this.color = color;
            this.highlight = highlight;
        }
    }
    
    public String text;
    public Style style;
 

    TextSymbol(String text, String font, String weight, double size, 
                Color color, Color highlight)
    {
        this.text = text;
        this.style = new Style(font, weight, size, color, highlight);
    }
    
    TextSymbol(String text, Style style)
    {
        this.text = text;
        this.style = style;
    }
    
    TextSymbol(String text, TextSymbol proto)
    {
        this(text, proto.style);
    }
    
}
